package com.gua.user.service.impl;

import java.util.List;

import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gua.user.entity.Menu;
import com.gua.user.mapper.MenuMapper;
import com.gua.user.response.LoginUser;
import com.gua.user.response.MenuDTO;
import com.gua.user.service.IMenuService;

/**
 * <p>
 * 菜单表 服务实现类
 * </p>
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {

//	@Override
//	public List<MenuDTO> getMenusByUserId() {
//		LoginUser loginUser = (LoginUser)SecurityContextHolder.getContext()
//				.getAuthentication().getPrincipal();
//		return baseMapper.getMenusByUserId(loginUser.getUser().getId());
//	}

}
